package com.dm.cloud.auth.service;

import com.dm.cloud.auth.common.mode.AppUserStatistics;
import com.dm.cloud.auth.common.mode.AuthAppClientDetail;
import com.dm.cloud.auth.common.po.AuthApp;
import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.auth.common.request.AuthAppSearchRequest;

import java.util.Map;

/**
   * @author hcx
   * @type AuthAppService.java
   * @desc AuthApp service
   */
public interface AuthAppService extends BaseEntityService<AuthAppSearchRequest,AuthApp> {

    AuthAppClientDetail appClientDetail(String appId);

    AuthApp findByAppCode(String appCode);

    /**
     * 获取应用code和名称的映射关系Map
     * @return
     */
    Map<String, String> appCodeName();

    /**
     * 统计应用关联的用户信息
     * @param appCode
     * @return
     */
    AppUserStatistics appUserStatistics(String appCode);
}
